package com.sky.myshop.services;

import com.sky.myshop.dao.GoodsDAO;
import com.sky.myshop.vo.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodService {
    @Autowired
    private GoodsDAO gdao;

    public List<Goods> findAll(){
        return gdao.findAllGoods();
    }
    public Goods findById(int id){
        return gdao.findById(id);
    }

}
